//
//  SCSliderView.h
//  OCRDemo
//
//  Created by 党帅 on 2019/6/14.
//  Copyright © 2019 党帅. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SCSliderViewDelegate <NSObject>

@optional
- (void)sliderViewLowerValueChanged:(CGFloat)lowerValue upperValue:(CGFloat)upper;

- (void)sliderViewUpperValueChanged:(CGFloat)upperValue lowerValue:(CGFloat)lower;
- (void)sliderMoveBegin;
- (void)sliderMoveEnd;
@end

NS_ASSUME_NONNULL_BEGIN

@interface SCSliderView : UIView

@property(nonatomic, weak) id<SCSliderViewDelegate> delegate;

@property (nonatomic, strong) UIImage *thumbImage;
@property (nonatomic, strong) UIColor *highlightedColor;
@property (nonatomic, strong) UIColor *normalColor;

@property(nonatomic, assign) float value;       // is equal to lowerValue
@property(nonatomic, assign) float lowerValue;  // left  thumb indicator value
@property(nonatomic, assign) float upperValue;  // right thumb indicator value

@property (nonatomic, assign) CGSize thumbSize;
@property (nonatomic, assign) float trackPathHeight; // defualt is 3.f

@property (nonatomic, strong) NSArray *rulerLines;
@end

NS_ASSUME_NONNULL_END
